<template>
  <div>
    <MyTable :arr="list"> <template> </template></MyTable>
  </div>
</template>

<script>
import MyTable from "@/components/MyTable.vue";
import axios from "axios";
export default {
  components: {
    MyTable,
  },
  data() {
    return {
      list: [],
    };
  },
  created() {
    //获取商品列表数据
    axios({
      url: "https://www.escook.cn/api/goods",
      methods: "get",
    }).then((res) => {
      console.log(res);
      this.list = res.data.data;
    });
  },
};
</script>

<style>
</style>